package com.yeban.javase.day13.test;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/23
 */
public class Monkey {

    public static int peach(int n) {
        if(n == 10) {
            return 1;
        } else {
            return 2 * (1 + peach(n + 1));
        }
    }

    public static void main(String[] args) {
        int n = peach(1);
        System.out.println("第一天桃子为：" + n);
    }

}
